/******************************************************************************
    File    :   XPoint.cs
    Version :   1.0.0.0
 	Date    :	13/10/2008   10:49
-------------------------------------------------------------------------------
*	Name    :	Nguyen Hung Cuong
*   Class   :   TH2005
*   StuID   :   0512085
*   Mail    :   nhc.hcmuns@gmail.com
-------------------------------------------------------------------------------
	Purpose :	
******************************************************************************/
using System;
using System.Collections.Generic;
using System.Text;

namespace _512085_CaroChess
{
    /// <summary>
    /// Point
    /// </summary>
    public class XPoint
    {
        private byte _x;

        public byte X
        {
            get { return _x; }
            set { _x = value; }
        }
        private byte _y;

        public byte Y
        {
            get { return _y; }
            set { _y = value; }
        }

        public XPoint()
        {
            _x = byte.MinValue;
            _y = byte.MinValue;
        }

        public XPoint(byte x, byte y)
        {
            _x = x;
            _y = y;
        }

        public void Update(byte x, byte y)
        {
            _x = x;
            _y = y;
        }

        public bool IsNull()
        {
            return (_x == byte.MinValue || _y == byte.MinValue);
        }
    }
}
